import { Navigate } from 'react-router'
import Today from '../views/today'
import Statistics from '../views/statistics'
import Project from '../views/project'
import Password from '../views/password'

const routes = [
  {
    path: '/',
    exact: true,
    element: <Navigate to="/today" />
  },
  {
    path: '/today',
    exact: true,
    element: <Today></Today>
  },
  {
    path: '/statistics',
    exact: true,
    element: <Statistics></Statistics>
  },
  {
    path: '/project',
    exact: true,
    element: <Project></Project>
  },
  {
    path: '/password',
    exact: true,
    element: <Password></Password>
  }
]

export default routes
